import { requst } from "@/utils";
export const getUser = () => {
  return async(dispatch) => {
    const res = await requst.get('/user/profile')
    dispatch({type:'user/Info',payload:res.data.data})
  }
}